using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace ShopForWeb.Dtos.BasicView
{
  /// <summary>
  /// Order
  /// </summary>
  public partial class OrderView
  {
    /// <summary>
    /// 地点
    /// </summary>
    public string Address { get; set; } = "";

    /// <summary>
    /// 管理员ID，外键，自增
    /// </summary>
    public long AdminId { get; set; }
    public AdminView CorAdmin { get; set; } = null!;


    /// <summary>
    /// 订单ID，主键，GUID
    /// </summary>
    public string OrderId { get; set; } = "";

    /// <summary>
    /// 订单状态
    /// </summary>
    public string OrderState { get; set; } = "";

    /// <summary>
    /// 下单时间
    /// </summary>
    public string OrderTime { get; set; } = "";

    /// <summary>
    /// 收货电话
    /// </summary>
    public string Phone { get; set; } = "";

    /// <summary>
    /// 总价格
    /// </summary>
    public decimal TotalPrice { get; set; }

    /// <summary>
    /// 用户ID，外键，自增
    /// </summary>
    public long UserId { get; set; }
    public UserView CorUser { get; set; } = null!;

  }
}
